//
//  NSArray+Extension.m
//  UNICode
//
//  Created by yutao on 15/5/1.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "NSArray+Extension.h"

@implementation NSArray (Extension)

- (NSString *)descriptionWithLocale:(id)locale
{
    NSMutableString *mStr = [NSMutableString string];
    [mStr appendFormat:@"("];
    for (id obj in self) {
        [mStr appendFormat:@"\n\t%@,", obj];
    }
    
    //去掉最后一个逗号(,)
    if ([mStr hasSuffix:@","]) {
        NSString *str = [mStr substringToIndex:mStr.length - 1];
        mStr = [NSMutableString stringWithString:str];
    }
    [mStr appendFormat:@"\n)"];
    return mStr;
}
@end
